"""
URL configuration for psychology_project project.

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/4.2/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path, include
from . import views
from django.views.generic import RedirectView

urlpatterns = [
    path("", RedirectView.as_view(url="/login", permanent=False), name="其他页面跳转至登录页面"),
    path("", include('psychology_chat.urls', namespace='psychology_chat'), name="心理问题聊天模块"),
    path("login/", include("psychology_login.urls", namespace="psychology_login"), name="登录模块"),
    path("register/", include("psychology_register.urls", namespace="psychology_register"), name="注册模块"),
    path("crisis/", include('psychology_crisis.urls', namespace='psychology_crisis'), name="预警模块"),
    path("learning/", include('psychology_learning.urls', namespace='psychology_learning'), name="学习资源模块"),
    path("api/", include("psychology_questions.urls", namespace="psychology_questions"), name="心理问卷评估模块"),
    path("profile/", include("psychology_profile.urls", namespace="psychology_profile"), name="个人资料模块"),
    path("questions/", views.question, name="推荐问卷页面"),
    path("picture/", views.picture, name="图片分析页面"),
    path("question1/", views.question1, name="问卷接口1"),
    path("download_report/", views.download_report, name="报告下载接口"),
]
